package com.ray.shirodemo1.web;
import com.ray.shirodemo1.model.ResultMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
 * User: Ray.Shaw <p />
 * Time: 2019/5/15 15:49  <p />
 * Version: V1.0  <p />
 * Description: 游客 <p />
 */

@RestController
@RequestMapping("/guest")
public class GuestController{
    @Autowired
    private ResultMap resultMap;

    @RequestMapping(value = "/enter", method = RequestMethod.GET)
    public ResultMap login() {
        return resultMap.success().message("欢迎进入，您的身份是游客");
    }

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public ResultMap submitLogin() {
        return resultMap.success().message("您拥有获得该接口的信息的权限！");
    }
}
